package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Role;

import java.util.List;
import java.util.Map;

public interface MenuService {
    List<Map> findMenuByUserName(String username);

    PageResult findPage(Integer pageSize, String queryString, Integer currentPage);

    List<Role> findAll();

    Menu findById(Integer id);

    List<Integer> findroleId(Integer id);

    void deleteById(Integer id);

    void edit(Integer[] roleIds, Menu menu);

    void addMenu(Integer[] roleIds, Menu menu);
}
